package other.perfactSingleton;

import java.util.ArrayList;
import java.util.Iterator;

public class Main {

	public static void main(String[] args) {
		NonSafeSingleton.getInstance().tttest();
		SafeSingleton.INSTANCE.tttest();
		
		Iterator<String> its = new ArrayList<String>().iterator();
		while (its.hasNext()) {
			String str = its.next();
			System.out.println(str);
		}
	}

}
